Declare Function FtpSetVerboseMode% Lib "FTP4W.DLL" (ByVal bVerboseMode As Integer, ByVal hVerboseWnd As Integer, ByVal wMsg As Integer)
Declare Function FtpBytesTransfered Lib "FTP4W.DLL" () As Long
Declare Function FtpBytesToBeTransfered Lib "FTP4W.DLL" () As Long
Declare Sub FtpSetDefaultTimeOut Lib "FTP4W.DLL" (ByVal nTo_in_sec As Integer)
Declare Sub FtpSetDefaultPort Lib "FTP4W.DLL" (ByVal nDefPort As Integer)
Declare Sub FtpSetAsynchronousMode Lib "FTP4W.DLL" ()
Declare Sub FtpSetSynchronousMode Lib "FTP4W.DLL" ()
Declare Function FtpIsAsynchronousMode Lib "FTP4W.DLL" () As Integer
Declare Sub FtpSetNewDelay Lib "FTP4W.DLL" (ByVal x As Integer)
Declare Sub FtpSetNewSlices Lib "FTP4W.DLL" (ByVal x As Integer, ByVal y As Integer)
' Init functions
Declare Function FtpRelease% Lib "FTP4W.DLL" ()
Declare Function FtpInit% Lib "FTP4W.DLL" (ByVal hParentWnd As Integer)
' Connection
Declare Function FtpLogin% Lib "FTP4W.DLL" (ByVal szHost As String, ByVal szUser As String, ByVal szPasswd As String, ByVal hParentWnd As Integer, ByVal wMsg As Integer)
Declare Function FtpOpenConnection% Lib "FTP4W.DLL" (ByVal szHost As String)
Declare Function FtpCloseConnection% Lib "FTP4W.DLL" ()
Declare Function FtpLocalClose% Lib "FTP4W.DLL" ()
' authentification
Declare Function FtpSendUserName% Lib "FTP4W.DLL" (ByVal szUserName As String)
Declare Function FtpSendPasswd% Lib "FTP4W.DLL" (ByVal szPasswd As String)
' commands
Declare Function FtpHelp% Lib "FTP4W.DLL" (ByVal szArg As String, ByVal szBuf As String, ByVal uBufSize As Integer)
Declare Function FtpCWD% Lib "FTP4W.DLL" (ByVal szPath As String)
Declare Function FtpQuote% Lib "FTP4W.DLL" (ByVal szCmd As String, ByVal szReplyBuf As String, ByVal uBufSize As Integer)
Declare Function FtpSetType% Lib "FTP4W.DLL" (ByVal cType As Integer)
' file transfer
Declare Function FtpAbort% Lib "FTP4W.DLL" ()
Declare Function FtpSendFile% Lib "FTP4W.DLL" (ByVal szLocal As String, ByVal szRemote As String, ByVal cType As Integer, ByVal bNotify As Integer, ByVal hParentWnd As Integer, ByVal wMsg As Integer)
Declare Function FtpRecvFile% Lib "FTP4W.DLL" (ByVal szRemote As String, ByVal szLocal As String, ByVal cType As Integer, ByVal bNotify As Integer, ByVal hParentWnd As Integer, ByVal wMsg As Integer)
Declare Function FtpGetFileSize Lib "FTP4W.DLL" () As Long
' Directory
Declare Function FtpDir% Lib "FTP4W.DLL" (ByVal szDef As String, ByVal szLocalFile As String, ByVal bLongDir As Integer, ByVal hParentWnd As Integer, ByVal wMsg As Integer)